/*
 * @Date: 2024-08-26 19:25:06
 * @LastEditors: lyx
 * @LastEditTime: 2024-08-27 09:36:05
 * @FilePath: \zod-demo\app\todo\types.js
 * @Description: 
 */
import { z } from 'zod';

export const TodoSchema = z.object({
  content: z.string().trim().min(2, { message: '最少需要输入 2 个字符' }).max(10, { message: '最多输入 10 个字符' })
})

// export type Todo = z.infer<typeof TodoSchema>
